package cn.edu.cdu.group4nb.service.impl;

import cn.edu.cdu.group4nb.mapper.MyPositionMapper;
import cn.edu.cdu.group4nb.mapper.RecordMapper;
import cn.edu.cdu.group4nb.po.Position;
import cn.edu.cdu.group4nb.po.Record;
import cn.edu.cdu.group4nb.service.PositionService;
import cn.edu.cdu.group4nb.service.RecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class RecordServiceImpl implements RecordService {
    @Autowired
    private RecordMapper RecordMapper;

    @Override
    public List<Map<String, Object>> selectRecord() {
        return RecordMapper.selectAll();
    }

    @Override
    public Boolean updPositionById(Record record) {
        return RecordMapper.updPositionById(record);
    }


}
